﻿Imports System.Windows.Forms

Public Class AddGroup
    Public Method As String
    Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.OK
        Me.Close()
    End Sub

    Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.Close()
    End Sub

    Private Sub AddGroup_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        'Dim dialog As New OpenFileDialog
        'dialog.ValidateNames = False
        'dialog.CheckFileExists = False
        'dialog.CheckPathExists = True

        ''dialog.FileName = "Folder Selection"
        'If dialog.ShowDialog() = Windows.Forms.DialogResult.OK Then
        '    MsgBox(dialog.FileName)
        'End If
        If (FolderBrowserDialog1.ShowDialog() = DialogResult.OK) Then
            txtGroupPath.Text = FolderBrowserDialog1.SelectedPath & "\"
        End If


    End Sub
End Class
